import axios from '@/libs/api.request'
import platform from '@/config/platform'
// 分页列表
export const getDataList = data => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/page',
    method: 'post',
    data
  })
}
// 获取区域信息列表
export const getAreaList = params => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/get-area',
    method: 'get',
    params
  })
}
// 获取设备类型列表
export const getFacilityTypeList = params => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/get-device-type',
    method: 'get',
    params
  })
}
// 获取车牌颜色列表
export const getPlateColorsList = params => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/get-plate-color',
    method: 'get',
    params
  })
}
// 获取车辆类型列表

export const getVehicleTypesList = params => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/get-vehicle-type',
    method: 'get',
    params
  })
}
// 获取车牌类型列表

export const getPlateTypesList = params => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/get-plate-type',
    method: 'get',
    params
  })
}
// 获取过车数据详情
export const getCarPassingInfo = id => {
  return axios.request({
    url: platform.CARPASSING + '/car-passing-data/' + id,
    method: 'get'
  })
}
